package cn.com.libertymutual.core.util;

import java.util.List;

import com.google.common.collect.Lists;

public class ListUtil {

	public static List<String> listContainAnyOne(List<String> list1,List<String> list2) {
		List<String> con = Lists.newArrayList();
		for (String s1 :list1) {
			for (String s2 :list2) {
				if (s1.equals(s2)) {
					System.out.println(s1+"=="+s2);
					con.add(s2);
				}
			}
		}
		return con;
	};
	
	 public static String doRandom(){
	    	String msgcontant = "";
	    	for(int i=0;i<10;i++){
				double b =Math.random()*1000000000+100000000;
				String number = String.valueOf(Math.floor(b));
				msgcontant = number.substring(0, 6);
			}
	    	return msgcontant.replace(".", "9");//防止有逗号存在
	    }
}
